package com.hb.trade.server.expert.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hb.core.pojo.expert.dto.ExpertDTO;
import com.hb.core.pojo.expert.dto.ExpertExtractParam;
import com.hb.core.pojo.expert.entity.ExpertBase;
import com.hb.core.pojo.parent.PageResult;
import org.fzzn.core.model.msg.Message;

import java.util.List;

/**
 * @author jinhaolin
 * @date 2022/1/18 14:08
 **/
public interface ExpertService extends IService<ExpertBase> {

    /**
     * 抽取专家
     * @param expertExtractParam
     * @return
     */
    Message<List<ExpertDTO>> expertExtract(ExpertExtractParam expertExtractParam);

    /**
     * 搜索专家
     * @param expertDTO
     * @return
     */
    PageResult<ExpertDTO> expertSearch(ExpertDTO expertDTO);

    /**
     * 搜索返回全部专家
     * @param expertDTO
     * @return
     */
    List<ExpertDTO> expertList(ExpertDTO expertDTO);


    /**
     * 查询专家手机号是否重复
     * @author tian
     * @date 2022-4-26 15:09
     * @param expertDTO
     * @return boolean
     */
    boolean countByPhoneNumberAndOrgId(ExpertDTO expertDTO);
}
